package org.liveboardgames.common.utils.images
{
	import org.liveboardgames.agricola.model.enums.ColorEnum;

	public class ColorUtils
	{
		public static function getColorCode(color:String):uint
		{
			var code:uint;
			if (ColorEnum.BLUE == color)
			{
				code = 0x0000FF;
			}
			else if (ColorEnum.GREEN == color)
			{
				code = 0x00FF00;
			}
			else if (ColorEnum.PURPLE == color)
			{
				code = 0x800080;
			}
			else if (ColorEnum.RED == color)
			{
				code = 0xFF0000;
			}
			else if (ColorEnum.WHITE == color)
			{
				code = 0xFFFFFF;
			}
			return code;
		}

	}
}